$OpenBSD: patch-src_cadaver_c,v 1.3 2010/04/30 09:41:20 jasper Exp $
--- src/cadaver.c.orig	Wed Oct 29 10:35:33 2008
+++ src/cadaver.c	Fri Apr 30 11:38:11 2010
@@ -724,7 +724,7 @@ static char **completion(const char *text, int start, 
     char *sep = strchr(rl_line_buffer, ' ');
 
     if (start == 0) {
-	matches = rl_completion_matches(text, command_generator);
+	matches = rl_completion_matches((char *)text, command_generator);
     }
     else if (sep != NULL) {
 	char *cname = ne_strndup(rl_line_buffer, sep - rl_line_buffer);
@@ -736,7 +736,7 @@ static char **completion(const char *text, int start, 
 	    case parmscope_none:
 		break;
 	    case parmscope_local:
-		matches = rl_completion_matches(text, 
+		matches = rl_completion_matches((char *)text, 
 						rl_filename_completion_function);
 		break;
 	    case parmscope_option:
@@ -744,7 +744,7 @@ static char **completion(const char *text, int start, 
 		break;
 	    case parmscope_remote:
 		if (session.connected) {
-		    matches = rl_completion_matches(text, remote_completion);
+		    matches = rl_completion_matches((char *)text, remote_completion);
 		}
 		break;
 	    }
